package org.fuys.coder.domain.redemption.model.vo;

import lombok.Data;

/**
 * @projectName: fuys-low-coder
 * @package: org.fuys.coder.domain.redemption.model.vo
 * @className: RedemptionResult
 * @author: WangJing
 * @description: 奖品兑换结果
 * @date: 2024/8/28 9:29
 * @version: 1.0
 */
@Data
public class RedemptionResult {
    private String msg;
    private Boolean success;

    public static RedemptionResult normal(){
        final RedemptionResult redemptionResult = new RedemptionResult();
        redemptionResult.setSuccess(true);
        return redemptionResult;
    }

    public static RedemptionResult abnormal(String msg){
        final RedemptionResult redemptionResult = new RedemptionResult();
        redemptionResult.setSuccess(false);
        redemptionResult.setMsg(msg);
        return redemptionResult;
    }

    public static RedemptionResult normal(String msg){
        final RedemptionResult redemptionResult = new RedemptionResult();
        redemptionResult.setSuccess(true);
        redemptionResult.setMsg(msg);
        return redemptionResult;
    }
}
